package com.xiaouyudeguang.common.utils;

import java.util.HashMap;
import java.util.Map;

public class TypeEnums {

    private static Map<String, String> typeMap = new HashMap<>();

    static {
        typeMap.put("字符串", "varchar(50)");
        typeMap.put("文本", "text");
        typeMap.put("数字", "int");
        typeMap.put("日期", "datetime");
        typeMap.put("金额", "double(15,2)");
    }

    public static String getType(String type) {
        return typeMap.get(type);
    }
}
